import numpy as np
import pandas as pd

import matplotlib.pyplot as plt
import seaborn as sns

# 导入iris数据集
from sklearn.datasets import load_iris

data = load_iris()

iris_target = data.target  # 得到数据对应的标签
iris_features = pd.DataFrame(data=data.data, columns=data.feature_names)  # 利用Pandas转化为DataFrame格式

print(iris_features)